﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Date" %>
<%@page import="java.text.SimpleDateFormat" %>
<%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    String date= format.format(new Date());
%>
<%@page
	import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	String gyh = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
	}
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>红点e贷服务管理系统</title>
<jsp:include page="../../../global/assets_common.jsp" />
<style type="text/css">
.input-group .form-control{
	z-index:0;
}
body{
	font-size: 10px;
}
.ui-widget-header{
	border: none;
}
</style>
	</head>
	<body>
		<div id="toolbar" class="ui-widget-header ui-corner-all">
		<button id="btu_search">搜索</button>
		<button id="btu_hkbj">我要还款(本金)</button>
		<button id="btu_hksy">按月还款收益</button>
	</div>
	<div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
		<!--提示框 开始-->
		<div id="dialog_alert" title="提示" class="row ui-helper-hidden"></div>
		<!--提示框结束-->
		<!--搜索模态框 开始-->
	<div id="dialog_search" title="查询搜索" class="row ui-helper-hidden">
		<form class="form">
		<div class="form-group">
				<label for="s_fbrq" class="control-label col-sm-2">发布日期:</label>
				<div class="col-sm-4">
					<div class="input-group">
					<input type="text" id="s_minfbrq" name="startDate" class="form-control"
						readonly="readonly"/>
					<span class="input-group-addon">至</span>
					<input type="text" id="s_maxfbrq" name="endDate" class="form-control"
						readonly="readonly"/>
				</div>
				</div>
			</div>
			<div class="form-group">
				<label for="s_xmmc" class="control-label col-sm-2">项目名称:</label>
				<div class="col-sm-4">
					<input type="text" id="s_xmmc" name="xmmct" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="s_xmlx" class="control-label col-sm-2">项目类型:</label>
				<div class="col-sm-4">
					<select  id="s_xmlx" name="xmtype" class="form-control">
							<option value="">全部</option>
							<option value="01">债权转让</option>
							<option value="02">散标投资</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="s_jkryhm" class="control-label col-sm-2">借款人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="s_jkryhm" name="jkrt" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="s_xmzt" class="control-label col-sm-2">项目状态:</label>
				<div class="col-sm-4">
					<select id="s_xmzt" name="state" class="form-control" >
					<option value="">全部状态</option>
					<option value="0">已截止</option>
					<option value="1">招标中</option>
					<option value="2">招标完成</option>
					<option value="3">还款中</option>
					<option value="4">还款完成</option>
					</select>
				</div>
			</div>
		</form>
	</div>
	<!--搜索模态框 结束-->
	
	
	
	<!--我要还款 开始-->
	<div id="dialog_insert" title="我要还款(本金)" class="row ui-helper-hidden">
		<form class="form" id="form_insert">
			<div class="form-group">
				<label for="i_xmmc" class="control-label col-sm-2">项目名称:</label>
				<div class="col-sm-4">
					<input type="text" id="i_xmmc" name="refzqxmmc" class="form-control"
						/>
				</div>
			</div>

			<div class="form-group">
				<label for="i_xmlx" class="control-label col-sm-2">项目类型:</label>
				<div class="col-sm-4">
					<input type="text" id="i_xmlx" class="form-control"
						/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_hklx" class="control-label col-sm-2">还款类型:</label>
				<div class="col-sm-4">
					<input type="text" id="i_hklx" name="hkzl" class="form-control"
						/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_je" class="control-label col-sm-2">金额:</label>
				<div class="col-sm-4">
					<div class="input-group">
						<input type="number" id="i_je" name="refzqxmje" class="form-control" /> 
					</div>
				</div>
			</div>
			<div class="form-group">
				<label for="i_mjje" class="control-label col-sm-2">募集金额:</label>
				<div class="col-sm-4">
						<input type="text" id="i_mjje" name="yhkje" class="form-control"
							 readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_zhdjje" class="control-label col-sm-2">冻结金额:</label>
				<div class="col-sm-4">
					<input type="text" id="i_zhdjje" name="djje" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zhkyje" class="control-label col-sm-2">可用金额:</label>
				<div class="col-sm-4">
					<input type="text" id="i_zhkyje" name="yhkje" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zhye" class="control-label col-sm-2">账户余额:</label>
				<div class="col-sm-4">
					<div class="input-group">
						<input type="text" id="i_zhye" name="zhye"
							class="form-control" />
					</div>
				</div>
			</div>
		<div class="form-group">
				<label for="i_dfryhm" class="control-label col-sm-2">代发人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="i_dfryhm"  class="form-control"
						readonly="readonly" value="<%=gyh%>" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_jkryhm" class="control-label col-sm-2">借款人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="i_jkryhm"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_yhkje" class="control-label col-sm-2">应还款金额:</label>
				<div class="col-sm-4">
					<input type="text" id="i_yhkje"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_hksj" class="control-label col-sm-2">还款时间:</label>
				<div class="col-sm-4">
					<input type="text" id="i_hksj"  class="form-control"
						readonly="readonly" value="<%=date%>" />
				</div>
			</div>
			<input type="hidden" id="i_id" name="id">
			<input type="hidden" id="i_refzqid" name="refzqid">
			<input type="hidden" id="i_sjhm" name="sjhm">
			<input type="hidden" id="i_hkzt" name="hkzt">
			<input type="hidden" id="i_hkzl" name="hkzl">
			
		</form>
	</div>
	<!--新增模态框 结束-->
	
	
	<!--按月还收益 开始-->
	<div id="dialog_add" title="按月还收益" class="row ui-helper-hidden">
		<form class="form" id="form_add">
			<div class="form-group">
				<label for="a_dfryhm" class="control-label col-sm-2">代发人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="a_dfryhm"  class="form-control"
						readonly="readonly" value="<%=gyh%>" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_jkryhm" class="control-label col-sm-2">借款人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="a_jkryhm"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_xmmc" class="control-label col-sm-2">项目名称:</label>
				<div class="col-sm-4">
					<input type="text" id="a_xmmc" name="refzqxmmc" class="form-control"
						/>
				</div>
			</div>

			<div class="form-group">
				<label for="a_xmlx" class="control-label col-sm-2">项目类型:</label>
				<div class="col-sm-4">
					<input type="text" id="a_xmlx" class="form-control"
						/>
				</div>
			</div>
			<div class="form-group">
				<label for="a_hklx" class="control-label col-sm-2">还款类型:</label>
				<div class="col-sm-4">
					<input type="text" id="a_hklx" name="hkzl" class="form-control"
						/>
				</div>
			</div>
			<div class="form-group">
				<label for="a_fbje" class="control-label col-sm-2">发标金额:</label>
				<div class="col-sm-4">
					<div class="input-group">
						<input type="text" id="a_fbje" name="refzqxmje" class="form-control" /> 
					</div>
				</div>
			</div>
			<div class="form-group">
				<label for="a_mjje" class="control-label col-sm-2">募集金额:</label>
				<div class="col-sm-4">
						<input type="text" id="a_mjje" name="yhkje" class="form-control"
							 readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="a_sjsyl" class="control-label col-sm-2">实际收益率:</label>
				<div class="col-sm-4">
					<input type="text" id="a_sjsyl"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_qxt" class="control-label col-sm-2">期限(天):</label>
				<div class="col-sm-4">
					<input type="text" id="a_qxt"  class="form-control"
						readonly="readonly"  />
				</div>
			</div>
				<div class="form-group">
				<label for="a_qxy" class="control-label col-sm-2">期限(月):</label>
				<div class="col-sm-4">
					<input type="text" id="a_qxy"  class="form-control"
						readonly="readonly"  />
				</div>
			</div>
			<div class="form-group">
				<label for="a_yhzsy" class="control-label col-sm-2">应还总收益:</label>
				<div class="col-sm-4">
					<input type="text" id="a_yhzsy"  class="form-control"
						readonly="readonly"  />
				</div>
			</div>
			<div class="form-group">
				<label for="a_yhsy" class="control-label col-sm-2">已还收益:</label>
				<div class="col-sm-4">
					<input type="text" id="a_yhsy"  class="form-control"
						readonly="readonly"  />
				</div>
			</div>
			<div class="form-group">
				<label for="a_zhye" class="control-label col-sm-2">账户余额:</label>
				<div class="col-sm-4">
					<div class="input-group">
						<input type="text" id="a_zhye" name="zhye"class="form-control" />
					</div>
				</div>
			</div>
			<div class="form-group">
				<label for="a_zhkyje" class="control-label col-sm-2">可用金额:</label>
				<div class="col-sm-4">
					<input type="text" id="a_zhkyje" name="yhkje" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_zhdjje" class="control-label col-sm-2">冻结金额:</label>
				<div class="col-sm-4">
					<input type="text" id="a_zhdjje" name="djje" class="form-control"
						readonly="readonly" />
				</div>
			</div>
				<div class="form-group">
				<label for="a_yhsymy" class="control-label col-sm-2">应还收益每月:</label>
				<div class="col-sm-4">
					<input type="text" id="a_yhsymy"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_bchk" class="control-label col-sm-2">本次还款:</label>
				<div class="col-sm-4">
					<input type="text" id="a_bchk"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="a_hksj" class="control-label col-sm-2">还款时间:</label>
				<div class="col-sm-4">
					<input type="text" id="a_hksj"  class="form-control"
						readonly="readonly" value="<%=date%>" />
				</div>
			</div>
			<input type="hidden" id="a_id" name="id">
			<input type="hidden" id="a_refzqid" name="refzqid">
			<input type="hidden" id="a_sjhm" name="sjhm">
			<input type="hidden" id="a_hkzt" name="hkzt">
			<input type="hidden" id="a_hkzl" name="hkzl">
			
		</form>
	</div>
	<!--新增模态框 结束-->
	
	
</body>
<script src="${basePath}/global/js/assets/p2p.jkgl.jkglhk.js"></script>
</html>